package com.sjr.easy.chat.exection;

public class EasyChatException extends RuntimeException {

    private final Integer code;

    public EasyChatException(String message, Integer code) {
        super(message);
        this.code = code;
    }


    public EasyChatException(String message) {
        super(message);
        this.code = 500;
    }

    public Integer getCode() {
        return code;
    }
}
